//
//  WSMNewsView.m
//  WinesMall
//
//  Created by Isaac on 17/9/5.
//  Copyright © 2017年 Isaac. All rights reserved.
//

#import "WSMNewsView.h"

@implementation WSMNewsView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        _cycleScrollView = [[SDCycleScrollView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 180)];
        _cycleScrollView.pageControlAliment = SDCycleScrollViewPageContolAlimentCenter;
        _cycleScrollView.currentPageDotColor = [UIColor redColor]; // 自定义分页控件小圆标颜色
        _cycleScrollView.autoScrollTimeInterval = 2;//滚动时间
        _cycleScrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
        _cycleScrollView.pageDotImage = [UIImage imageNamed:@"whiteLine"];
        _cycleScrollView.currentPageDotImage = [UIImage imageNamed:@"redLine"];
        _cycleScrollView.clipsToBounds = YES;
        _cycleScrollView.placeholderImage = [UIImage imageNamed:@"WBBAN"];
        [self addSubview:_cycleScrollView];
    }
    return self;
}


@end
